{extend name="common/common"}
<!-- Start Breadcrumbs Area -->
{block name="head"}
<div class="breadcrumbs-area section-padding">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="breadcrumbs text-center text-white">
                   <h3 class="text-uppercase">Shopping Cart</h3> 
                   <ul class="breadcrumbs-list">
                        <li>
                            <a href="__INDEX__index/index.html" title="Return to Home">Home</a>
                        </li>
                        <li>/</li>
                        <li>Shopping Cart</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
<!-- End Of Breadcrumbs Area -->
<!-- Start page content -->
<section id="page-content" class="page-wrapper">
    <!-- Start Wishlist Area -->
{block name="headcontent"}
<div class="wishlist-area section-padding">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="wishlist-content">
                    <form action="#">
                        <div class="wishlist-table table-responsive p-30 text-uppercase">
                            <table>
                                <thead>
                                    <tr>
                                        <th class="product-thumbnail"></th>
                                        <th class="product-name"><span class="nobr">商品名称</span></th>
                                        <th class="product-prices"><span class="nobr"> 价格 </span></th>
                                        <th class="product-stock-stauts"><span class="nobr"> stock status </span></th>
                                        <th class="product-add-to-cart"><span class="nobr">数量</span></th>
                                        <th class="product-remove"><span class="nobr">删除商品</span></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {if condition="!empty($care)"}
                                        {foreach name="care" id="v" key="k"}
                                            <tr class="carelist">
                                                <td class="product-thumbnail"><a href="__INDEX__#" title="men’s black t-shirt"><img class="img-rounded img-responsive"  src="__ADMIN__assets/images/uploads/{$v['img']}" /></a></td>
                                                <td class="product-name pull-left mt-20">
                                                    <a href="{:url('ware/product_details')}?ware_id={$v['ware_id']}" title="men’s black t-shirt">{$v['tradename']}</a>
                                                    {for start="0" end="3"}
                                                        {if condition="!empty($v['sub'][$i])"}
                                                        <p class="w-color m-0">
                                                            <label>{$v['sub'][$i]} : </label>
                                                            {$v['ware_spec'][$i]}
                                                        </p>
                                                        {/if}
                                                    {/for}
                                                </td>
                                                <td class="product-prices"><span class="amount">￥ {$v['ware_price']}</span></td>
                                                <td class="product-stock-status"><span class="wishlist-in-stock">In Stock</span></td>
                                                <td class="product-value">
                                                    <input type="number" min="1" value="{$v['quantity']}">
                                                </td>
                                                <td class="product-remove"><button type="button" data-id="{$v['id']}" class="btn btn-default delware" data-toggle="modal" data-target="#myModal">×</button></td>
                                            </tr>
                                        {/foreach}
                                    {else /}
                                        <tr>
                                            <td></td>
                                            <td></td>
                                            <td class="showerror"><p class="bg-info pull-right">你还没有添加任 </p></td>
                                            <td class="showerror"><p class="bg-info pull-left"> 何商品进购物车 </p></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                    {/if}
                                </tbody>
                            </table>
                        </div>
                        <div class="row">
                            <div class="cart-requerment mt-50 clearfix">
                                <div class="col-md-offset-0 col-md-4 col-sm-offset-3 col-sm-6 clearfix pull-right">
                                    <div class="counpon-total ml-35">
                                        <div class="cart-title text-uppercase">
                                            <h5 class="mb-30"><strong>总额</strong></h5>
                                        </div>
                                        <table>
                                            <tbody>
                                                <tr class="cart-subtotal">
                                                    <th>Subtotal</th>
                                                    <td>£215.00</td>
                                                </tr>
                                                <tr class="cart-shipping">
                                                    <th>Shipping</th>
                                                    <td>Free Shipping</td>
                                                </tr>
                                                <tr class="cart-total">
                                                    <th>Grand Total</th>
                                                    <td>£215.00</td>
                                                </tr>
                                            </tbody>
                                        </table> 
                                        <a class="button extra-small pull-right" href="__INDEX__#" title="Add to Cart">
                                            <span>Procced to checkout</span>
                                        </a>                                                     
                                    </div>
                                </div>                                            
                            </div>
                        </div>  
                    </form>
                </div>                            
            </div>
        </div>
    </div>
</div>

<!-- 弹窗 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" data-backdrop="false" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">提示</h4>
      </div>
      <div class="modal-body showfont">
      </div>
      <div class="modal-footer">
      </div>
    </div>
  </div>
</div>
<!-- //////////////////////////////////// -->
<!-- //////////////////////////////////// -->
{/block}
<!-- End Of Wishlist Area -->
{block name="js"}
<script>
    var delurl = "{:url('user/cart')}"
</script>
<script src="__INDEX__js/cart.js"></script>
{/block}